From f9eb14bf6a6a5097885ce33573f75a2c3f3a1d5c Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 12 Apr 2006 18:53:38 +0100 Subject: [PATCH] Reset the cached state to XenbusStateInitialising on resume -- we're connecting to a new backend, so the state value needs to be reset. Signed-off-by: Ewan Mellor --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index 94fd44f7f9..09bedf7b66 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -825,6 +825,8 @@ static int resume_dev(struct device *dev, void *data) return err; } + xdev->state = XenbusStateInitialising; + if (drv->resume) err = drv->resume(xdev); if (err) -- 2.30.2